import { FormItemType } from "@/components/GuatForm/types";

export const newNoticeFormConfig: FormItemType[] = [
  {
    label: "标题",
    field: "noticeTitle",
    component: "Input",
    required: true,
  },
  {
    label: "公告类型",
    field: "noticeType",
    component: "Select",
    required: true,
  },
  {
    label: "时间范围",
    field: "noticePostTime",
    component: "RangePicker",
    required: true,
  },
  {
    label: "投放位置",
    field: "noticeTarget",
    component: "CheckboxGroup",
    options: [
      {
        label: "控制台",
        value: 0,
      },
      {
        label: "页头滚动",
        value: 1,
      },
      {
        label: "首次登录弹窗",
        value: 2,
      },
      {
        label: "小程序推送",
        value: 3,
      },
    ],
  },
  {
    label: "公告内容",
    field: "noticeConten",
    component: "Textarea",
    required: true,
    props: {
      maxLength: 200,
      showWordLimit: true,
    },
  },
];
